commit | 18b5eac27b14b409503aa8047cf9358082a0e0df | [log] [tgz] |
---|---|---|
author | Joey Arhar <jarhar@chromium.org> | Fri Mar 29 22:03:14 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 29 22:03:14 2024 |
tree | 0d6254e37dc8a5e73d2afe6f148ebe10b3aa5153 | |
parent | 772f24ee0f80dc7aceaf8408a64cb3c564940894 [diff] |
Implement <selectedoption> for StylableSelect This patch adds support for the <selectedoption> element to <select>. The <selectedoption> element replaces its innerHTML with the ancestor <select>'s selected <option>s innerHTML whenever the selected <option> changes. This patch implements it using a SynchronousMutationObserver with an IsDescendantOf check, which might be slow. I added some comments in the header with ideas of how to improve the performance. Bug: 1511354 Change-Id: I38be4657e11dd766cef1fc974e16da173fdf829d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5370555 Reviewed-by: David Baron <dbaron@chromium.org> Commit-Queue: Joey Arhar <jarhar@chromium.org> Cr-Commit-Position: refs/heads/main@{#1280361}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.